package com.blb.service.impl;

import com.blb.entity.Driver;
import com.blb.mapper.DriverMapper;
import com.blb.service.IDriverService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yanghao
 * @since 2019-11-16
 */
@Service
public class DriverServiceImpl extends ServiceImpl<DriverMapper, Driver> implements IDriverService {

    @Resource
    private DriverMapper driverMapper;

    @Override
    public int getAllCount(String drivername,String  companyId, String driverlicense) {
        return driverMapper.getAllCount(drivername,companyId, driverlicense);
    }

    @Override
    public List<Driver> findAll(String drivername,String  companyId, String driverlicense, int start, int length) {
        return driverMapper.findAll(drivername,companyId, driverlicense, start, length);
    }
}
